<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
?>

<!-- JavaScript -->
<script type="text/javascript" src="<?= base_url() ?>js/wufoo.js"></script>
<!--<script src="<?= base_url() ?>js/chosen.jquery.js" type="text/javascript"></script>-->
<!-- CSS -->
<!--<link rel="stylesheet" type="text/css" href="<?= base_url() ?>css/form/form.css" media="screen, tv, projection" title="Default" />-->
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/datepicker.css" media="screen, tv, projection" title="Default" />
<script type="text/javascript" src="<?= base_url() ?>js/datepicker.js"></script>
<link rel="stylesheet" href="<?php echo base_url() ?>css/chosen.css" />
<?php 
$p_foto = base_url().'uploads/siswa/';
$p_foto_pdf = 'uploads/siswa/';

if(is_file($p_foto_pdf.$siswa->FOTO))
	$url_foto = $p_foto_pdf.$siswa->FOTO;
else
	$url_foto = $p_foto_pdf.'default1.jpg';
?>
<div>

<table border=0 cellspacing="5" width="300" style="font-size:12px;">
<tr>
	<td align="right" width="150"><img src="images/main/logo_sma.jpg" width="110" height="100" ></td>
	<td>&nbsp;</td>
	<td valign="bottom" width="300" colspan="3"><font size="6">SMA NEGERI 2 SIDOARJO</font><br><font size="3" valign="top"><i>Jl. Lingkar Barat Gading Fajar 2 Sidoarjo</i></font></td>
</tr>
<tr>
	<td colspan="5" align="center">&nbsp;</td>
</tr>
<tr>
	<td colspan="5" align="center"><font size="3"><b>DETAIL SISWA</b></font></td>
</tr>
</table>
<br>
<table width="500" border=0 style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif ;
	font-weight: normal;
	font-size: 11px;border-collapse: collapse;" cellspacing="0">
	<tr height="70"><td align="left" colspan="4"><b>A. KETERANGAN PRIBADI</b></td></tr>
	<tr height="50">
		<td width="30" align="right">1.</td>
		<td width="80"  align="left">Nama Peserta Didik</td>
		<td width="250"  align="left">&nbsp;</td>
		<td width="100" rowspan="10" align="left"><img src="<?= $url_foto; ?>" width="130" height="150"></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">a. Lengkap</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->NAMA_LENGKAP?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">b. Panggilan</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->NAMA_PANGGILAN?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">2.</td>
		<td width="80"  align="left">Jenis Kelamin</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->JENIS_KELAMIN=='L'?'Laki-Laki':'Perempuan'?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">3.</td>
		<td width="80"  align="left">Tempat Lahir</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->TEMPAT_LAHIR?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">4.</td>
		<td width="80"  align="left">Tanggal Lahir</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo xFormatDate($siswa->TANGGAL_LAHIR);?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">5.</td>
		<td width="80"  align="left">Agama</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $agama->NAMA_AGAMA?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">6.</td>
		<td width="80"  align="left">Kewarganegaraan</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->WARGA_NEGARA;?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">7.</td>
		<td width="80"  align="left">Anak ke</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->ANAK_KE?> dari <?php echo $siswa->DARI_JUMLAH_SAUDARA?></td>
	</tr>
	<!--<tr height="50"> 
		<td width="30" align="right">8.</td>
		<td width="80"  align="left">Kondisi Siswa</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $kondisi->NAMA_KONDISI;?></td>
	</tr>-->
	<tr height="70"><td align="left" colspan="4"><b>B. KETERANGAN TEMPAT TINGGAL</b></td></tr>
	<tr height="50">
		<td width="30" align="right">8.</td>
		<td width="80"  align="left">Alamat</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->ALAMAT_ASAL ?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">9.</td>
		<td width="80"  align="left">Telepon</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->TELEPON ?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">10.</td>
		<td width="80"  align="left">Handphone</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->HP ?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">11.</td>
		<td width="80"  align="left">Email</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->EMAIL ?></td>
	</tr>
	<tr height="70"><td align="left" colspan="4"><b>C. KETERANGAN KESEHATAN</b></td></tr>
	<tr height="50">
		<td width="30" align="right">12.</td>
		<td width="80"  align="left">Berat Badan</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->BERAT_BADAN?> kg</td>
	</tr>
	<tr height="50">
		<td width="30" align="right">13.</td>
		<td width="80"  align="left">Tinggi Badan</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->TINGGI_BADAN?> cm</td>
	</tr>
	<tr height="50">
		<td width="30" align="right">14.</td>
		<td width="80"  align="left">Golongan Darah</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->GOLONGAN_DARAH?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">15.</td>
		<td width="80"  align="left">Riwayat Penyakit</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->PENYAKIT_YANG_DIDERITA?></td>
	</tr>
	<tr height="70"><td align="left" colspan="4"><b>D. KETERANGAN SEKOLAH SEBELUMNYA</b></td></tr>
	<tr height="50">
		<td width="30" align="right">16.</td>
		<td width="80"  align="left">Asal Sekolah</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->ASAL_SEKOLAH?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">17.</td>
		<td width="120"  align="left">Keterangan Asal Sekolah</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->KETERANGAN_ASAL_SEKOLAH?></td>
	</tr>
	<tr height="70"><td align="left" colspan="4"><b>E. KETERANGAN ORANG TUA</b></td></tr>
	<tr height="50">
		<td width="30" align="right">1.</td>
		<td width="80"  align="left">Ayah</td>
		<td width="250"  align="left">&nbsp;</td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">a. Nama</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php if($siswa->IS_AYAH_ALMARHUM == 1) ECHO 'Alm. '.$siswa->NAMA_AYAH; else echo $siswa->NAMA_AYAH;?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">b. Pendidikan Akhir</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php if(!empty($r_pendidikan_ayah->NAMA_PENDIDIKAN)) echo $r_pendidikan_ayah->NAMA_PENDIDIKAN; else echo '';?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">c. Pekerjaan</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php if(!empty($r_pekerjaan_ayah->NAMA_PEKERJAAN)) ECHO $r_pekerjaan_ayah->NAMA_PEKERJAAN; else echo '';?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">d. Penghasilan</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->PENGHASILAN_AYAH?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">e. Telepon</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->TELEPON_AYAH;?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">f. Handphone</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->HP_AYAH?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">g. Email</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->EMAIL_AYAH?></td>
	</tr>
	
	<tr height="50">
		<td width="30" align="right">2.</td>
		<td width="80"  align="left">Ibu</td>
		<td width="250"  align="left">&nbsp;</td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">a. Nama</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php if($siswa->IS_IBU_ALMARHUM == 1) ECHO 'Almh. '.$siswa->NAMA_IBU; else echo $siswa->NAMA_IBU;?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">b. Pendidikan Akhir</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php if(!empty($r_pendidikan_ibu->NAMA_PENDIDIKAN)) echo $r_pendidikan_ibu->NAMA_PENDIDIKAN; else echo '';?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">c. Pekerjaan</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php if(!empty($r_pekerjaan_ibu->NAMA_PEKERJAAN)) ECHO $r_pekerjaan_ibu->NAMA_PEKERJAAN; else echo '';?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">d. Penghasilan</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->PENGHASILAN_IBU?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">e. Telepon</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php ECHO $siswa->TELEPON_IBU;?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">f. Handphone</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->HP_IBU?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">g. Email</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->EMAIL_IBU?></td>
	</tr>
	
	<tr height="50">
		<td width="30" align="right">3.</td>
		<td width="80"  align="left">Wali</td>
		<td width="250"  align="left">&nbsp;</td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">a. Nama</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php ECHO $siswa->NAMA_WALI;?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">b. Pendidikan Akhir</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php if(!empty($r_pendidikan_wali->NAMA_PENDIDIKAN)) echo $r_pendidikan_wali->NAMA_PENDIDIKAN; else echo '';?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">c. Pekerjaan</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php if(!empty($r_pekerjaan_wali->NAMA_PEKERJAAN)) ECHO $r_pekerjaan_wali->NAMA_PEKERJAAN; else echo '';?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">d. Penghasilan</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->PENGHASILAN_WALI?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">e. Telepon</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php ECHO $siswa->TELEPON_WALI;?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">f. Handphone</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->HP_WALI?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">g. Email</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->EMAIL_WALI?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">18.</td>
		<td width="80"  align="left">Keterangan</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $siswa->KETERANGAN?></td>
	</tr>
</table>
</div>